package com.company;

import java.util.ArrayList;

public class Main {

    public static void main(String[] args) {
	// write your code here
        subject subject = new subject();
        ArrayList arr = subject.getResult();
        //System.out.println(arr.size());
        //将数字替换为之前对应的内容
        String[] s1=(String[])arr.get(0);
        String[] s2=(String[])arr.get(1);
        String[] s3=(String[])arr.get(2);
        String[] s4=(String[])arr.get(3);
        String[] s5=(String[])arr.get(4);
        System.out.print("{");
        for(int i=0;i<5;i++){
            String temp;
            if(s1[i].equals("1"))
                temp="Yellow";
            else if(s1[i].equals("2"))
                temp="Red";
            else if(s1[i].equals("3"))
                temp="Green";
            else if(s1[i].equals("4"))
                temp="White";
            else temp="Blue";
            System.out.print(temp+" ");
        }
        System.out.println("}");
        System.out.print("{");
        for(int i=0;i<5;i++){
            String temp;
            if(s2[i].equals("1"))
                temp="NorWay";
            else if(s2[i].equals("2"))
                temp="English";
            else if(s2[i].equals("3"))
                temp="German";
            else if(s2[i].equals("4"))
                temp="Sweden";
            else temp="Denmark";
            System.out.print(temp+" ");
        }
        System.out.println("}");
        System.out.print("{");
        for(int i=0;i<5;i++){
            String temp;
            if(s3[i].equals("1"))
                temp="Water";
            else if(s3[i].equals("2"))
                temp="Tea";
            else if(s3[i].equals("3"))
                temp="Beer";
            else if(s3[i].equals("4"))
                temp="Milk";
            else temp="Coffee";
            System.out.print(temp+" ");
        }
        System.out.println("}");
        System.out.print("{");
        for(int i=0;i<5;i++){
            String temp;
            if(s4[i].equals("1"))
                temp="Dog";
            else if(s4[i].equals("2"))
                temp="Cat";
            else if(s4[i].equals("3"))
                temp="Bird";
            else if(s4[i].equals("4"))
                temp="Horse";
            else temp="Fish";
            System.out.print(temp+" ");
        }
        System.out.println("}");
        System.out.print("{");
        for(int i=0;i<5;i++){
            String temp;
            if(s5[i].equals("1"))
                temp="PallMall";
            else if(s5[i].equals("2"))
                temp="DunHill";
            else if(s5[i].equals("3"))
                temp="Blends";
            else if(s5[i].equals("4"))
                temp="BlueMarster";
            else temp="Prince";
            System.out.print(temp+" ");
        }
        System.out.println("}");
    }
}
